package com.senven.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author zsy
 * @Date 2022/9/16 9:57
 * @PackageName:com.senven.order.config
 * @ClassName: AliPayConfig
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "alipay")
/*获取配置文件中的alipay的参数*/
public class AliPayConfig {
    private String appId;
    private String appPrivateKey;
    private String alipayPublicKey;
    //支付宝异步通知路径,付款完毕后会异步调用本项目的方法,必须为公网地址
    private String notifyUrl;
    //支付宝同步通知路径,也就是当付款完毕后跳转本项目的页面,可以不是公网地址
    private String returnUrl;

}
